package com.yxx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yxx.entity.Message;
import com.yxx.entityModel.vo.query.MessageQuery;
import com.yxx.entityModel.vo.response.MessageBackResponse;
import com.yxx.entityModel.vo.response.MessageResponse;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author yuxiangxun
 * @date 2025/1/23
 * @apiNote
 */
@Repository
public interface MessageMapper extends BaseMapper<Message> {
    /**
     * 查询留言列表
     * @return
     */
    List<MessageResponse> selectMessageVOList();

    /**
     * 查询后台留言列表
     * @param messageQuery
     * @return
     */
    List<MessageBackResponse> selectBackMessageList(@Param("param") MessageQuery messageQuery);
}
